﻿import request from '/@/utils/request';
enum Api {
  AddBoardDisplayDesignDetail = '/api/boardDisplayDesignDetail/add',
  DeleteBoardDisplayDesignDetail = '/api/boardDisplayDesignDetail/delete',
  UpdateBoardDisplayDesignDetail = '/api/boardDisplayDesignDetail/update',
  PageBoardDisplayDesignDetail = '/api/boardDisplayDesignDetail/page',
  DetailBoardDisplayDesignDetail = '/api/boardDisplayDesignDetail/detail',
}

// 增加组态设计明细表
export const addBoardDisplayDesignDetail = (params?: any) =>
	request({
		url: Api.AddBoardDisplayDesignDetail,
		method: 'post',
		data: params,
	});

// 删除组态设计明细表
export const deleteBoardDisplayDesignDetail = (params?: any) => 
	request({
			url: Api.DeleteBoardDisplayDesignDetail,
			method: 'post',
			data: params,
		});

// 编辑组态设计明细表
export const updateBoardDisplayDesignDetail = (params?: any) => 
	request({
			url: Api.UpdateBoardDisplayDesignDetail,
			method: 'post',
			data: params,
		});

// 分页查询组态设计明细表
export const pageBoardDisplayDesignDetail = (params?: any) => 
	request({
			url: Api.PageBoardDisplayDesignDetail,
			method: 'post',
			data: params,
		});

// 详情组态设计明细表
export const detailBoardDisplayDesignDetail = (id: any) => 
	request({
			url: Api.DetailBoardDisplayDesignDetail,
			method: 'get',
			data: { id },
		});


